//
//  Seach_Filtrate_Model_WX.h
//  ZITHER
//
//  Created by weixin on 2019/3/20.
//  Copyright © 2019 weixn. All rights reserved.
//

#import "NSObjectModelDesc.h"
#import "searchConditionsModel.h"

@class Seach_FiltrateAttribute_Model_WX;
@class Seach_FiltrateAttributeSub_Model_WX;
@class Seach_FiltrateAttributeSubData_Model_WX;
@class Seach_SearchResultTopBar_Model_WX;

NS_ASSUME_NONNULL_BEGIN

#define kUSER_Filtrate_MANAGER [Seach_Filtrate_Model_WX defaultManager]

@interface Seach_Filtrate_Model_WX : NSObjectModelDesc<NSCoding>

/* MARK: ================= 品牌相关 =================*/

//@property (nonatomic,strong)NSMutableArray * arrBrand;//品牌默认数据
@property (nonatomic,strong)NSMutableArray * arrBrandSelect;//品牌选中的品牌数据
@property (nonatomic,strong)Seach_FiltrateAttributeSubData_Model_WX * arrBrandSelectAdd;//添加元素(包含所有元素 不单单只是brand)

@property (nonatomic,strong)Seach_FiltrateAttributeSubData_Model_WX * arrBrandSelectRem;//删除元素
@property (nonatomic,assign)NSIndexPath * BrandRemIndex;//删除元素 定位
@property (nonatomic,copy)NSArray * arrBrandBigWord;//品牌首字母


/* MARK: ================= 属性相关 =================*/
@property (nonatomic,strong)NSMutableArray <Seach_FiltrateAttribute_Model_WX*>* arrAttribute;//属性列表


/* MARK: ================= 顶部bar数据 =================*/
@property (nonatomic,strong)Seach_SearchResultTopBar_Model_WX * SearchResultTopBarModel;//顶部bar数据



// 单例
+ (instancetype)defaultManager;
-(void)claenData;//清空所有数据
-(void)resetData;//重制部分数据




//-(void)resetData;//重制部分数据

@end


@interface Seach_FiltrateAttribute_Model_WX : NSObjectModelDesc

@property (nonatomic,copy)NSString * name;
@property (nonatomic,copy)NSString * type;
@property (nonatomic,copy)NSArray<Seach_FiltrateAttributeSub_Model_WX *> * child;

@end

@interface Seach_FiltrateAttributeSub_Model_WX : NSObjectModelDesc
@property (nonatomic,copy)NSString * groupName;
@property (nonatomic,copy)NSArray<Seach_FiltrateAttributeSubData_Model_WX *> * data;
@property (nonatomic,copy)NSString * groupId;

@end

@interface Seach_FiltrateAttributeSubData_Model_WX : NSObjectModelDesc

@property (nonatomic,copy)NSString * labelId;
@property (nonatomic,copy)NSString * labelName;
@property (nonatomic,copy)NSArray * labelValue;



@property (nonatomic,assign)BOOL isSelect;
@property (nonatomic,copy)NSString * groupId;

/**
 点击添加以后 为model添加一条位置属性
 点击删除以后通过这条属性 做指定cell刷新
 */
@property (nonatomic,assign)NSIndexPath * indexPath;
@property (nonatomic,assign)NSInteger indexTbv;

/**
 区分是否是公价
 */
@property (nonatomic,assign)BOOL ispublicPrice;


@end




//顶部bar数据
@interface Seach_SearchResultTopBar_Model_WX : NSObjectModelDesc
@property (nonatomic,copy)NSString * ResultCont;//结果数量
@property (nonatomic,copy)NSString* keyWord;//关键字
@property (nonatomic,assign)NSInteger sotr;//公价排序
@end

NS_ASSUME_NONNULL_END

